package com.dcy.znoa.domain.attendance;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder //考勤汇总用的
public class ArrAndApplyVo {
    String depName;//dep_name
    String operName;//oper_name
    String phoneNo;//phone_no
    String dutyName;//duty_name
    String addAbnormal;//add_abnormal
    String appLeave;//app_leave
    String normal;
    String notHit;//not_hit
    String appOut;//app_out
    String late;
    String appTravel;//app_travel
    String leaveEarly;//leave_early
    String operId;//oper_id
//"部门", "姓名", "联系方式", "正常（次）", "迟到（次）", "早退（次）", "地点异常（次）", "未打卡（次）", "出差（次）", "外勤（次）", "请假（次）"
    public static Map<String,Object> toMap(ArrAndApplyVo arrAndApplyVo) {
        Map<String, Object> map  = new HashMap<String, Object>();
        map.put("depName",arrAndApplyVo.getDepName());//部门
        map.put("operName", arrAndApplyVo.getOperName());
        map.put("phoneNo",arrAndApplyVo.getPhoneNo());
        map.put("normal",arrAndApplyVo.getNormal());
        map.put("late",arrAndApplyVo.getLate());
        map.put("leaveEarly",arrAndApplyVo.getLeaveEarly());
        map.put("addAbnormal",arrAndApplyVo.getAddAbnormal());
        map.put("notHit",arrAndApplyVo.getNotHit());
        map.put("appTravel",arrAndApplyVo.getAppTravel());
        map.put("appOut",arrAndApplyVo.getAppOut());
        map.put("appLeave",arrAndApplyVo.getAppLeave());
        return  map;
    }
}
